import request from '@/utils/request'

// 获取新版本实时曲线
export function getVoChartRealTime(data: any) {
  return request({
    url: '/local/trendChart/realTimeData',
    method: 'post',
    data
  })
}
// 获取新版本历史曲线
export function getVoChartHistoryTime(data: any) {
  return request({
    url: '/local/trendChart/historyTimeData',
    method: 'post',
    data
  })
}
// 上传历史曲线数据到本地
export function uploadHistoryFile(data: any) {
  return request({
    url: '/local/trendChart/uploadHistoryFile',
    method: 'post',
    data
  })
}
// 停止曲线查询
export function chartstop(data: any) {
  return request({
    url: `/local/trendChart/chartstop/${data.status}`,
    method: 'post',
    data
  })
}
// 暂停曲线查询
export function chartpause(data: any) {
  return request({
    url: `/local/trendChart/chartpause/${data.status}`,
    method: 'post',
    data
  })
}
// 继续曲线查询
export function chartcontiue(data: any) {
  return request({
    url: `/local/trendChart/chartcontiue/${data.status}`,
    method: 'post',
    data
  })
}
// 继续曲线查询
export function chartsearch(data: any) {
  return request({
    url: `/local/trendChart/chartsearch/${data.status}`,
    method: 'post',
    data
  })
}
